import java.util.regex.Matcher;
import java.util.regex.Pattern;


public class WebSiteRegex {

	public static void main(String[] args) {
//		String url = "http://u.boe.com/resource/course/view.html?id=A3BA0903-37DEDD84-F1BE-1F825C4679EC";
//		String regex = "^([hH][tT]{2}[pP]://|[hH][tT]{2}[pP][sS]://)(([A-Za-z0-9-~]+).)+([A-Za-z0-9-~\\/])+$";
//		System.out.println(url.matches(regex));
		
		String url = "Peng                                                                                                                             C:\\Program Files\\Microsoft SQL Server\\MSSQL10.MSSQLSERVER\\MSSQL\\DATA\\Peng.mdf                                                                                                                                                                                        D    PRIMARY                                                                                                                                       3145728       35184372080640                    1                           0                           0 6FBA4589-B701-4E9F-A1E3-65816D3BB2A3                           0                           0              1507328             512           1 NULL                                           20000000030500190 D13D85D5-3DC2-4CD8-9891-A9F660CFB8D7          0         1 NULL                                      ";
		url=url.replaceAll("\\s*", "");
		url=url.substring(url.indexOf(":")-1,url.indexOf("mdf")+3);
		System.out.println(url);
		
	}
}
